import type { LocationQuery } from 'vue-router'

export interface UsernameProps {
  type: 'username'
  data: {
    readme?: boolean
    remember?: boolean
    username?: string
    password?: string
    vcode?: string
  }
}

export interface SmsProps {
  type: 'sms'
  data: {
    readme?: boolean
    remember?: boolean
    phone?: string
    code?: string
    vcode?: string
  }
}

export interface EmailProps {
  type: 'email'
  data: {
    readme?: boolean
    remember?: boolean
    email?: string
    code?: string
    vcode?: string
  }
}

export type IDoLoginProps = UsernameProps | SmsProps | EmailProps

export interface NavProps {
  path: string
  query?: LocationQuery
}
